class Invitation < ActiveRecord::Base
  belongs_to :contact
  belongs_to :event
  
  validates_uniqueness_of :code
  
  def to_param
    "#{self.code}"
  end
  
end
